// 1.导入vue-router包
import VueRouter from 'vue-router'

//2.导入对应的组件
import HomeContainer from './components/tabber/HomeContainer.vue'
import MemberContainer from './components/tabber/MemberContainer.vue'
import SearchContainer from './components/tabber/SearchContainer.vue'
import ShopcarContainer from './components/tabber/ShopcarContainer.vue'
import Network from './components/Network/comments.vue'
import Netinit from './components/Network/netinit.vue'
import Photolist from './components/photolist/PhotoList.vue'
import Photointo from './components/photolist/Photointo.vue'
import Shopping from './components/shopping/Shopping.vue'
import Googs from './components/shopping/Googs.vue'
import Goshop from './components/shopping/Goshop.vue'
import Gocomment from './components/shopping/Gocomment.vue'
// 3.创建路由对象
var router = new VueRouter({
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:HomeContainer },
        {path:'/member',component:MemberContainer },
        {path:'/search',component:SearchContainer },
        {path:'/shopcar',component:ShopcarContainer },
        {path:'/home/Network',component:Network},
        {path:'/home/Netinit',component:Netinit},
        {path:'/home/photolist',component:Photolist},
        {path:'/home/photointo',component:Photointo},
        {path:'/home/shopping',component:Shopping},
        {path:'/home/shopping/googs',component:Googs,name:'get'},
        {path:'/home/shoping/googs/goshop',component:Goshop,name:'shop'},
        {path:'/home/shoping/googs/gocomment',component:Gocomment,name:'comment'}
    ],
    linkActiveClass: 'mui-active' //覆盖默认的路由高亮的类，默认的叫做router-link-active
})
// 把路由对象暴露出去
export default router